package com.saturn.titan.core.repository.mybatis;

import com.saturn.titan.core.bean.BusiDeployBill;
import com.saturn.titan.core.repository.mybatis.annotations.GenerateDao;
import com.saturn.titan.core.repository.mybatis.annotations.MyBatisRepository;
import com.saturn.titan.core.repository.mybatis.base.BaseDao;

/**
 * 通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 * 方法名称必须与Mapper.xml中保持一致.
 * 
 * @author lwh
 */
@MyBatisRepository
@GenerateDao(beanType = BusiDeployBill.class)
public interface BusiDeployBillDao extends BaseDao<BusiDeployBill>{

	/**
	 * 根据工单id，获取工单当前分配人id
	 * @param id
	 * @return
	 */
	Long findCurrentEmpByWorkBillId(Long id);
	
	Long findCurrentDeployIdByWorkBillId(Long id);
}
